package com.zhiche.lisa.bms.dao.model.price;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 回写结算价格OTM日志
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-13
 */
@TableName("lisa_price_income_log")
public class PriceIncomeLog extends Model<PriceIncomeLog> {

    private static final long serialVersionUID = 1L;

    /**
     * id主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 请求地址
     */
    private String url;
    /**
     * 运输订单号，来源唯一键(存储otm releaseGid)
     */
    @TableField("item_source_key")
    private String itemSourceKey;
    /**
     * 收入执行价
     */
    @TableField("act_incoming_price")
    private BigDecimal actIncomingPrice;
    /**
     * 执行公里数
     */
    @TableField("kilometre")
    private BigDecimal kilometre;
    /**
     * 状态; 0-成功, 1-失败
     */
    private Integer status;
    /**
     * 请求参数
     */
    private String param;
    /**
     * 返回信息
     */
    @TableField("result_msg")
    private String resultMsg;
    /**
     * 错误回调次数
     */
    private Integer num;

    @TableField("gmt_create")
    private Date gmtCreate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getItemSourceKey() {
        return itemSourceKey;
    }

    public void setItemSourceKey(String itemSourceKey) {
        this.itemSourceKey = itemSourceKey;
    }

    public BigDecimal getActIncomingPrice() {
        return actIncomingPrice;
    }

    public BigDecimal getKilometre() {
        return kilometre;
    }

    public void setKilometre(BigDecimal kilometre) {
        this.kilometre = kilometre;
    }

    public void setActIncomingPrice(BigDecimal actIncomingPrice) {
        this.actIncomingPrice = actIncomingPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }

    public String getResultMsg() {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PriceIncomeLog{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", itemSourceKey='" + itemSourceKey + '\'' +
                ", actIncomingPrice=" + actIncomingPrice +
                ", kilometre=" + kilometre +
                ", status=" + status +
                ", param='" + param + '\'' +
                ", resultMsg='" + resultMsg + '\'' +
                ", num=" + num +
                ", gmtCreate=" + gmtCreate +
                "} " + super.toString();
    }
}
